package com.mdd.admin.validate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import com.mdd.common.validator.annotation.IDMust;

/**
 * 快递分类配置参数
 * @author DEREK
 */
@Data
@ApiModel("快递分类配置更新参数")
public class FastTypeUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    private Integer id;

    @ApiModelProperty(value = "相关ID")
    private Integer relatedId;

    @NotNull(message = "name参数缺失")
    @ApiModelProperty(value = "快递名称")
    private String name;

    @ApiModelProperty(value = "图标")
    private String icon;

    @NotNull(message = "price参数缺失")
    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    @NotNull(message = "remark参数缺失")
    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "扩展字段")
    private String extend;

    private String code;
    private Integer sort;
    private BigDecimal goldCoin;
}
